package com.tsky.yyj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tsky.system.entity.Constant;

/**
 * @function：地区
 * @author: cainiao
 * @version 1.0
 * @time: 2013-6-10 上午10:21:25
 */
@Entity
@Table(name = "T_YYJ_Area")
public class Area {
	@Id
	private String id;// 序号
	private String name;// 地区名
	@ManyToOne @JoinColumn(name="city_id")
	private Constant city;// 城市

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Constant getCity() {
		return city;
	}

	public void setCity(Constant city) {
		this.city = city;
	}

}
